<?php

/**
 * 推荐数据管理
 */
Route::get('recommend/reclist0s', ['as' => 'recommend.reclist0s.index', 'uses' => 'Recommend\Reclist0Controller@index']);
Route::post('recommend/reclist0s', ['as' => 'recommend.reclist0s.store', 'uses' => 'Recommend\Reclist0Controller@store']);
Route::get('recommend/reclist0s/create', ['as' => 'recommend.reclist0s.create', 'uses' => 'Recommend\Reclist0Controller@create']);
Route::put('recommend/reclist0s/{reclist0s}', ['as' => 'recommend.reclist0s.update', 'uses' => 'Recommend\Reclist0Controller@update']);
Route::patch('recommend/reclist0s/{reclist0s}', ['as' => 'recommend.reclist0s.update', 'uses' => 'Recommend\Reclist0Controller@update']);
Route::delete('recommend/reclist0s/{reclist0s}', ['as' => 'recommend.reclist0s.destroy', 'uses' => 'Recommend\Reclist0Controller@destroy']);
Route::get('recommend/reclist0s/{reclist0s}', ['as' => 'recommend.reclist0s.show', 'uses' => 'Recommend\Reclist0Controller@show']);
Route::get('recommend/reclist0s/{reclist0s}/edit', ['as' => 'recommend.reclist0s.edit', 'uses' => 'Recommend\Reclist0Controller@edit']);

// 渲染推荐数据编辑页面
Route::get('recommend/reclist0s/asset_datas/view', ['as' => 'recommend.reclist0s.add_asset_data', 'uses' => 'Recommend\Reclist0Controller@addReclistAssetData']);
// 根据数据类型获取相应数据
Route::post('recommend/reclist0s/asset_type/asset_datas', ['as' => 'recommend.reclist0s.asset_data', 'uses' => 'Recommend\Reclist0Controller@getDataByAssetType']);
// 保存推荐位数据
Route::post('recommend/reclist0/asset_type/asset_datas/store', ['as' => 'recommend.reclist0s.asset_datas.store', 'uses' => 'Recommend\Reclist0Controller@assetDataStore']);

// 根据推荐类型定义
Route::get('recommend/reclist0s/datas/reccats', ['as' => 'recommend.reclist0s.datas.reccats', 'uses' => 'Recommend\Reclist0Controller@getDataByReccatId']);
// 根据推荐类型回填数据
Route::get('recommend/reclist0s/datas/{reccats}/resources', ['as' => 'recommend.reclist0s.resources.reccats', 'uses' => 'Recommend\Reclist0Controller@getResourceDataByReccatId']);
